Skip to content

chore: promote dev to main — php v0.3.0 (Mantis #1212)#4

Merged
Snider merged 1 commit into
mainfrom
dev
Apr 30, 2026
Merged

chore: promote dev to main — php v0.3.0 (Mantis #1212)#4
Snider merged 1 commit into
mainfrom
dev

Conversation

@Snider
Copy link
Copy Markdown
Contributor

@Snider Snider commented Apr 30, 2026

Brings v0.3.0 to main: drops the dappco.re/go/{cli,i18n} replace block + clishim/i18nshim trees, migrates command registration to *core.Core. Closes Mantis #1212.

Dropped the local replace block in go.mod that re-routed dappco.re/go/cli
and dappco.re/go/i18n to internal/clishim and internal/i18nshim. Both
shim trees deleted entirely.

Migrated PHP command registration to consume the real upstream packages
+ core/go's *Core: commands now register via *core.Core / c.Command(...)
where appropriate, while the genuine UI helpers (cli.NewStyle, ColourX,
SuccessStyle, MinimumNArgs, etc.) keep their dappco.re/go/cli/pkg/cli
imports.

Added pkg/php/go_cli_helpers.go as a transition layer for the legacy
error helpers (phpErr / phpWrap / phpWrapVerb / phpExit) — these still
use fmt.Errorf internally and will be migrated to core.E in a follow-up
ticket. The shim removal + 0%-replace policy compliance is the
load-bearing win in this commit.

27 files changed: build, vet, test all clean.

Closes-headline-goal-of: tasks.lthn.sh/view.php?id=1212
Follow-up: migrate go_cli_helpers.go from fmt.Errorf to core.E

Co-authored-by: Codex <noreply@openai.com>
@Snider Snider merged commit 5ef9594 into main Apr 30, 2026
12 of 14 checks passed
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
5.9% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant